ci(audience): add CDN bundle size gate (SDK-115)#2855
Merged
ImmutableJeffrey merged 1 commit intomainfrom Apr 16, 2026
Merged
Conversation
|
View your CI Pipeline Execution ↗ for commit 4eeb429
☁️ Nx Cloud last updated this comment at |
✅ Audience Bundle Size — @imtbl/audience
Budget: 24.00 KB gzipped (warn at 20.00 KB) |
90add33 to
42565f8
Compare
db6104f to
f64e467
Compare
nattb8
previously approved these changes
Apr 15, 2026
JCSanPedro
previously approved these changes
Apr 15, 2026
The base branch was changed.
JCSanPedro
approved these changes
Apr 16, 2026
nattb8
approved these changes
Apr 16, 2026
w3njah
approved these changes
Apr 16, 2026
Adds a GitHub Actions workflow that measures the gzipped size of the @imtbl/audience CDN bundle on every PR and posts a sticky comment with the delta vs the PR base. - Warns at 20 KB gzipped, fails the build over 24 KB - Builds the full dep chain (audience-core, metrics) before measuring - Degrades gracefully when the base build is unavailable (reports n/a deltas, still enforces the absolute budget) - Routes all GitHub context through env blocks (no shell injection) - Skips comment posting on fork PRs, falls back to job summary - Budget thresholds live in packages/audience/sdk/bundlebudget.json Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
f64e467 to
4eeb429
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@imtbl/audienceon every PR that touches audience, audience-core, metrics, or the lockfilepackages/audience/sdk/bundlebudget.jsonStacked on #2853
Targets
feat/audience-cdn-bundle, notmain. The comment header shows the stack parent as the base ref until #2853 merges.Linear: SDK-115